<template
  ><div class="container">
    <div class="main">main</div>
    <div class="left">left</div>
    <div class="right">right</div>
  </div>
</template>

<script>
export default {
  name: "CssHolyGrail"
};
</script>

<style scoped>
.container {
  width: 100%;
  min-height: 300px;
  padding: 0 60px;
  box-sizing: border-box;
}
.container > div {
  position: relative;
  float: left;
}
.left,
.right {
  width: 60px;
  height: 100%;
}
.left {
  left: -60px;
  margin-left: -100%;
  background-color: yellow;
}
.right {
  right: 0;
  margin-right: -100%;
}
.main {
  width: 100%;
  height: 100%;
  background-color: #4facf5;
}
</style>
